// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * PaypalSettlementReport generated by hbm2java
 */
@Entity
@Table(name = "paypal_settlement_report", catalog = "magento", uniqueConstraints = @UniqueConstraint(columnNames = {
		"report_date", "account_id" }))
public class PaypalSettlementReport implements java.io.Serializable {

	private Integer reportId;
	private Date reportDate;
	private String accountId;
	private String filename;
	private Date lastModified;
	private Set paypalSettlementReportRows = new HashSet(0);

	public PaypalSettlementReport() {
	}

	public PaypalSettlementReport(Date reportDate, String accountId,
			String filename, Date lastModified, Set paypalSettlementReportRows) {
		this.reportDate = reportDate;
		this.accountId = accountId;
		this.filename = filename;
		this.lastModified = lastModified;
		this.paypalSettlementReportRows = paypalSettlementReportRows;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "report_id", unique = true, nullable = false)
	public Integer getReportId() {
		return this.reportId;
	}

	public void setReportId(Integer reportId) {
		this.reportId = reportId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "report_date", length = 19)
	public Date getReportDate() {
		return this.reportDate;
	}

	public void setReportDate(Date reportDate) {
		this.reportDate = reportDate;
	}

	@Column(name = "account_id", length = 64)
	public String getAccountId() {
		return this.accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	@Column(name = "filename", length = 24)
	public String getFilename() {
		return this.filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "last_modified", length = 19)
	public Date getLastModified() {
		return this.lastModified;
	}

	public void setLastModified(Date lastModified) {
		this.lastModified = lastModified;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "paypalSettlementReport")
	public Set getPaypalSettlementReportRows() {
		return this.paypalSettlementReportRows;
	}

	public void setPaypalSettlementReportRows(Set paypalSettlementReportRows) {
		this.paypalSettlementReportRows = paypalSettlementReportRows;
	}

}
